package autotd;


public class Player {
	
	private int lives;
	private int money;
	
	public Player(int lives, int money) {
		this.lives = lives;
		this.money = money;
	}

	public int getLives() {
		return lives;
	}
	
	
	public void setLives(int lives) {
		this.lives = lives;
	}
	
	public void hit(int n) {
		lives = Math.max(lives-n, -1);
	}
	
	public boolean isAlive() {
		return lives >= 0;
	}
	
	public int getMoney() {
		return money;
	}

	public void setMoney(int money) {
		this.money = money;
	}
	
}









